/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Taxi.model;

/**
 *
 * @author U24022
 */
public class Operation {

    private int id;
    private String unitnumber;
    private String driver;
    private String startodometer;
    private String endodometer;
    private String platenumber;
    private String startDate;
    private String endDate;
    private String boundary;
    private String takenBoundary;

    public Operation() {
    }

    public Operation(String unitnumber, String driver, String startodometer, String endodometer, String platenumber, String startDate, String endDate, String boundary, String takenBoundary) {
        this.unitnumber = unitnumber;
        this.driver = driver;
        this.startodometer = startodometer;
        this.endodometer = endodometer;
        this.platenumber = platenumber;
        this.startDate = startDate;
        this.endDate = endDate;
        this.boundary = boundary;
        this.takenBoundary = takenBoundary;
    }

     public Operation(int id, String unitnumber, String driver, String startodometer, String endodometer, String platenumber, String startDate, String endDate, String boundary, String takenBoundary) {
        this.id = id;
        this.unitnumber = unitnumber;
        this.driver = driver;
        this.startodometer = startodometer;
        this.endodometer = endodometer;
        this.platenumber = platenumber;
        this.startDate = startDate;
        this.endDate = endDate;
        this.boundary = boundary;
        this.takenBoundary = takenBoundary;
    }


    public String getBoundary() {
        return boundary;
    }

    public void setBoundary(String boundary) {
        this.boundary = boundary;
    }


    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getEndodometer() {
        return endodometer;
    }

    public void setEndodometer(String endodometer) {
        this.endodometer = endodometer;
    }

    public String getPlatenumber() {
        return platenumber;
    }

    public void setPlatenumber(String platenumber) {
        this.platenumber = platenumber;
    }

    public String getStartodometer() {
        return startodometer;
    }

    public void setStartodometer(String startodometer) {
        this.startodometer = startodometer;
    }

    public String getUnitnumber() {
        return unitnumber;
    }

    public void setUnitnumber(String unitnumber) {
        this.unitnumber = unitnumber;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getTakenBoundary() {
        return takenBoundary;
    }

    public void setTakenBoundary(String takenBoundary) {
        this.takenBoundary = takenBoundary;
    }

    public String getBoundaryDeficit(){
        int a = Integer.parseInt(boundary);
        int b = Integer.parseInt(takenBoundary);
        return String.valueOf(a - b);
    }

}
